﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using CPlatePrintSys.Infrastructure;
using Prism.Commands;
using Prism.Events;
using Prism.Mvvm;
using Prism.Navigation.Regions;

namespace CPlatePrintSys.Application.ViewModels
{
    public class ProcessSequenceCreateNewModel : Window
    {
        private readonly IEventAggregator _eventAggregator;
        private readonly IRegionManager _regionManager;

        public DelegateCommand BackCommand { get; private set; }

        public ProcessSequenceCreateNewModel(IRegionManager regionManager, IEventAggregator eventAggregator)
        {
            _eventAggregator = eventAggregator;
            _regionManager = regionManager;
            BackCommand = new DelegateCommand(ExecuteBackCommand);
        }

        private void ExecuteBackCommand()
        {
            _regionManager.RequestNavigate(ConstStrings.UI_Region_Main_Content, "MainWindow");
        }
    }
}
